package com.ai;

import com.ai.filter.IpListener;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * SpringBoot 启动类
 */
@SpringBootApplication
@MapperScan("com.ai.mapper")
@Slf4j
@ServletComponentScan(basePackages = {"com.ai.common.filter"})
public class Application {

    public static void main(String[] args) throws Exception {
        SpringApplication app = new SpringApplication(Application.class);
        app.addListeners(new IpListener());
        app.run(args);
    }

}
